package fastwave.cloud.demo.sz;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableZuulProxy
public class ServiceZuul {

    public static void main(String[] args) {
        SpringApplication.run(ServiceZuul.class, args);
    }

//    @Bean
//    public io.opentracing.Tracer tracer() {
//        io.jaegertracing.Configuration config = new io.jaegertracing.Configuration("service-zuul");
//        io.jaegertracing.Configuration.SenderConfiguration sender = new io.jaegertracing.Configuration.SenderConfiguration();
//        sender.withEndpoint("http://tracing-analysis-dc-zb.aliyuncs.com/adapt_ey70ioo0d6@b0296baaca8712b_ey70ioo0d6@53df7ad2afe8301/api/traces");
//        config.withSampler(new io.jaegertracing.Configuration.SamplerConfiguration().withType("const").withParam(1));
//        config.withReporter(new io.jaegertracing.Configuration.ReporterConfiguration().withSender(sender).withMaxQueueSize(10000));
//        return config.getTracer();
//    }
}
